/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cepicam.src.view;

import java.awt.BorderLayout;
import java.awt.CardLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.OverlayLayout;

/**
 *
 * @author Kalimera
 */
public class PanelPrincipalDroit extends javax.swing.JPanel {

	
	private PanelTableauDeBord ptableau;
    /**
     * Creates new form PanelPrincipalDroit
     */
    public PanelPrincipalDroit() {
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    public void initComponents(PanelTableauDeBord ptdb) {
    	
    	CardLayout ol = new CardLayout();
    	
/**
        this.setLayout(ol);

        this.setPreferredSize(new java.awt.Dimension(854, 755));

        JLabel test = new JLabel("ceci est un retest");
        //this.add(test,"card1");
        JPanel panelTest = new JPanel(new BorderLayout());
        JButton jbtest = new JButton("ceci est un test");
        panelTest.add(jbtest);
        
        this.add(panelTest,"card2");
               
        this.add(ptdb,"card3");

        ol.show(this,"card3");
        
        //((CardLayout) this.getLayout()).show(this,"card3"); 
         * 
         * */
         

        
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 854, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 755, Short.MAX_VALUE)
        );
        
        
        
       
      //  ptdb.setVisible(true);
    }// </editor-fold>
    // Variables declaration - do not modify
    // End of variables declaration
}
